<template>
  <div id="app">
    <keep-alive :include="cachedViews">
      <router-view />
    </keep-alive>
  </div>
</template>

<script>
export default {
  name: 'App',
  computed: {
    cachedViews() {
      return this.$store.state.tagsView.cachedViews.map((item) => {
        return item[0].toUpperCase() + item.slice(1)
      })
    },
    key() {
      return this.$route.path
    }
  }
}
</script>
